package com.hhck.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleAuthMapper {

    // 根据角色id删除角色权限关系
    public int deleteRoleAuthByRoleId(Integer roleId);

    // 根据角色id给角色分配权限
    public int insertRoleAuthByRoleId(@Param("roleId") Integer roleId, @Param("authIdList") List<Integer> authIdList);

}

